Pod::Spec.new do |s|

  s.name         = "XHToolKit"
  s.version      = "1.16.2"
  s.summary      = "XHToolKit"

  s.description  = <<-DESC
  工具类库
                   DESC

  s.homepage     = "http://github.com/liesauer"
  s.license      = { :type => "MIT", :file => "LICENSE" }

  s.author             = { "LiesAuer" => "liesauer@liesauer.net" }

  s.platform     = :ios, "9.0"
  s.ios.deployment_target = "9.0"

  s.source       = { :git => "git@gitee.com:liesauer/XHToolKit.git", :tag => s.version }

  s.source_files  = "XHToolKit/**/*.{h,m}"

  s.frameworks = "Foundation", "UIKit"

  # s.libraries = "iconv", "xml2"

  s.requires_arc = true

  s.subspec 'StringUtil' do |su|
    su.source_files  = "XHToolKit/StringUtil/*.{h,m}"
  end

  s.subspec 'XHPopView' do |pv|
    pv.source_files     = "XHToolKit/XHPopView/*.{h,m}"
    pv.frameworks       = "Foundation", "UIKit"
    pv.resource_bundles = {
      'XHPopView' => ['XHToolKit/XHPopView/*.png']
    }
  end

  s.subspec 'XHMemory' do |m|
    m.source_files  = "XHToolKit/XHMemory/*.{h,m}"
  end

  s.subspec 'XHMagnifyView' do |mv|
    mv.source_files     = "XHToolKit/XHMagnifyView/*.{h,m}"
    mv.frameworks       = "Foundation", "UIKit"
  end

  s.subspec 'ViewNotification' do |su|
    su.source_files  = "XHToolKit/ViewNotification/*.{h,m}"
  end

  s.subspec 'YLSPicker' do |su|
    su.source_files  = "XHToolKit/YLSPicker/*/*.{h,m}"
  end

  s.subspec 'XHVideo' do |v|
    v.source_files     = "XHToolKit/Player/*.{h,m}"
    v.frameworks       = "Foundation", "UIKit", "AVFoundation"
    v.dependency 'VIMediaCache'
    v.resource_bundles = {
      'XHVideo' => ['XHToolKit/Player/*.{png,xib}']
    }
  end

  s.subspec 'XHPath' do |path|
    path.source_files     = "XHToolKit/XHPath/*.{h,m}"
    path.frameworks       = "Foundation", "UIKit"
  end

  s.subspec 'XHLocalNotification' do |localNotification|
    localNotification.source_files     = "XHToolKit/XHLocalNotification/*.{h,m}"
    localNotification.frameworks       = "Foundation", "UIKit"
  end

  s.subspec 'XHFileHandler' do |fileHandler|
    fileHandler.source_files     = "XHToolKit/XHFileHandler/*.{h,m}"
    fileHandler.frameworks       = "Foundation"
  end

  s.subspec 'XHDateManager' do |dateManager|
    dateManager.source_files     = "XHToolKit/XHDateManager/*.{h,m}"
    dateManager.frameworks       = "Foundation"
  end

  s.subspec 'UIImageExtension' do |uiimageExtension|
    uiimageExtension.source_files     = "XHToolKit/UIImageExtension/*.{h,m}"
    uiimageExtension.frameworks       = "Foundation", "UIKit"
  end

  s.subspec 'XHImageView' do |imageView|
    imageView.source_files     = "XHToolKit/XHImageView/*.{h,m}"
    imageView.frameworks       = "UIKit"
  end

  s.subspec 'UIViewExtension' do |uiviewExtension|
    uiviewExtension.source_files     = "XHToolKit/UIViewExtension/*.{h,m}"
    uiviewExtension.frameworks       = "UIKit"
    uiviewExtension.dependency 'XHToolKit/UIImageExtension'
  end

  s.subspec 'XHTransformationView' do |transformationView|
    transformationView.source_files     = "XHToolKit/XHTransformationView/*.{h,m}"
    transformationView.frameworks       = "UIKit"
    transformationView.dependency 'XHToolKit/UIViewExtension'
  end

  s.subspec 'UINavigationControllerExtension' do |uivavigationControllerExtension|
    uivavigationControllerExtension.source_files     = "XHToolKit/UINavigationControllerExtension/*.{h,m}"
    uivavigationControllerExtension.frameworks       = "UIKit"
    uivavigationControllerExtension.dependency 'XHToolKit/UIViewExtension'
  end

  s.subspec 'XHUtil' do |util|
    util.source_files     = "XHToolKit/XHUtil/**/*.{h,m}"
    util.frameworks       = "Foundation"
  end

  s.subspec 'XHNumberLabel' do |numberLabel|
    numberLabel.source_files     = "XHToolKit/XHNumberLabel/*.{h,m}"
    numberLabel.frameworks       = "Foundation", "UIKit"
    numberLabel.resource_bundles = {
      'XHPopView' => ['XHToolKit/XHNumberLabel/*.png']
  }
  end

end
